package com.tensquare.qa.client.impl;

import com.tensquare.base.pojo.Label;
import com.tensquare.qa.client.LabelClient;
import entity.Result;
import entity.StatusCode;
import org.springframework.stereotype.Component;

/**
 * @author Macross
 * @Type LabelClientFallBackImpl.java
 * @Desc 远程调用Label服务的降级实现类
 * @date 2019/12/27 11:21
 */
@Component
public class LabelClientFallBack implements LabelClient {

    @Override
    public Result<Label> findById(String id) {
        return new Result<>(false,StatusCode.ERROR,"出现异常，熔断器已打开!");
    }
}
